<div class="box">
  <div class="box-caption bg-white-transparent">
    <div class="box-caption-content">
      <div id="filter_title">Filter Hotels</div>
    </div>
  </div>
  <div class="box-body bg-white">
    <div class="box-body-content">
      <%= form_tag hotels_path, remote: true, method: 'GET', class: "form-vertical" do  %>
        <%= label_tag 'search', 'By Hotel Name' %>
        <%= text_field_tag "search[hotel_name]", (session[:hotel_search] == nil)? '' : session[:hotel_search][:hotel_name]%>

        <div id="filter_province">
          <%= label_tag 'area', 'By Area' %>
          <%= select_tag "search[area_id]", options_for_select(Area.all.collect{ |u| [u.area, u.id]}, :selected=> (session[:hotel_search] == nil)? '' : session[:hotel_search][:area]), :prompt => "Select Province" %>
        </div>

        <div class="submit-filter-admin">
          <%= submit_tag "Filter", class: "btn btn-primary btn-block" %>
          <%= link_to "Clear Filter", hotels_path(:clear_session => true), class: "btn btn-block", remote: true %>
        </div>
      <% end %>  
    </div>
  </div>
</div>